package homework;

import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * @classname:Exception1
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/4 16:26
 * @version: 0.1
 * @since:1.8
 */
public class Exception1 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        try {
            int num1 = input.nextInt();
            int num2 = input.nextInt();
            int a = num1 / num2;
            System.out.println(a);
        } catch (InputMismatchException e) {
            System.out.println("输入字符非法");
        }catch (ArithmeticException e){
            e.printStackTrace();
        }finally {
            input.close();
        }
    }
}
